package com.gtw.modules.dao;

import com.gtw.modules.entity.TbProxyDividendDetails;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface TbProxyDividendDetailsDao {

    int deleteByPrimaryKey(Integer id);

    int insert(TbProxyDividendDetails record);

    int insertSelective(TbProxyDividendDetails record);

    TbProxyDividendDetails selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbProxyDividendDetails record);

    int updateByPrimaryKey(TbProxyDividendDetails record);

    /**
     * 根据受益人ID查询
     */
    List<TbProxyDividendDetails> queryBybenefit(Integer benefitUserid);

    /**
     * 根据触发人ID查询
     */
    List<TbProxyDividendDetails> queryBytrigger(Integer triggerUserid);
}